package com.bookstore.domain;
import org.springframework.stereotype.Repository;

/*
    表shopping_cart的实体类
    用于存放用户购物车信息
*/
@Repository
public class ShoppingCart {
    private User uid;//订单所属用户
    private Book bid;//商品所属id
    private Integer count;//商品数量

    public ShoppingCart(User uid, Book bid, Integer count) {
        this.uid = uid;
        this.bid = bid;
        this.count = count;
    }

    public ShoppingCart() {
    }

    public User getUid() {
        return uid;
    }

    public void setUid(User uid) {
        this.uid = uid;
    }

    public Book getBid() {
        return bid;
    }

    public void setBid(Book bid) {
        this.bid = bid;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
}
